import Vue from 'vue'
import App from './App.vue'
// 自定义指令
import directives from './directives'

Vue.config.productionTip = false
Vue.prototype.$bus = new Vue()

const { focus, permision } = directives

// 获取焦点自定义指令
Vue.directive(focus.directiveName, focus.options)
// 权限自定义指令
Vue.directive(permision.directiveName, permision.options)

new Vue({
  render: h => h(App),
}).$mount('#app')
